package com.ylfstu.Homework.homework05;

public class Homework05 {
    public static void main(String[] args) {
        Worker worker = new Worker("johnson", 24, 3000.0);
        worker.PrintAllYearSal();
        Teacher teacher = new Teacher("juice", 29, 4000.0, 50, 1);
        teacher.PrintAllYearSal();
        Scientist scientist = new Scientist("jack", 30, 10000.0);
        scientist.setBonus(40000);
        scientist.PrintAllYearSal();
    }
}
